package cn.wolfcode.crm.mapper;

import cn.wolfcode.crm.domain.Customer;
import cn.wolfcode.crm.query.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CustomerMapper {
    void deleteByPrimaryKey(Long id);

    void insert(Customer record);

    Customer selectByPrimaryKey(Long id);

    List<Customer> selectAll();

    void updateSeller(@Param("sellerId") Long sellerId, @Param("status") Integer status, @Param("id") Long id);

    void updateByPrimaryKey(Customer record);

    List<Customer> queryForList(QueryObject qo);

}